package com.ysz.client.conn;

import com.ysz.Starter;
import com.ysz.client.task.ClientTask;
import com.ysz.common.threadpool.ThreadPoolComm;


/**
 * @ClassName ClientConn
 * @Description TODO
 * @Data 13:46
 * @Version 1.0
 * @Author ysz
 */
public class ClientConn {

    public void start() {
        this.register();
    }

    private void register() {
        for (String ip : Starter.clientsNode) {
            ThreadPoolComm.CLIENT_THREADS.submit(new ClientTask(ip));
        }
    }

}
